package com.qf.lanzhou.shop.api.service;

import com.qf.lanzhou.shop.pojo.entity.Serial;
import com.qf.lanzhou.shop.pojo.qo.SerialQo;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.util.List;

/**
 * @author Yeach-chen
 * @ClassName SerialService
 */
public interface SerialService {
    /**
     * 根据用户ID查询其流水
     * @return
     */
    List<Serial> getSerial(Long id) throws ParseException;

    /**
     * 根据流水订单id删除流水
     * @param id
     * @return
     */
    int deleteSerial(Long id);

    /**
     * 获取搜索后的流水
     * @param serialQo
     * @return
     */
    List<Serial> serialList(SerialQo serialQo) throws ParseException;
}
